From: Florian Müllner Date: Mon, 28 Jan 2019 02:34:48 +0000 (+0100) Subject: ci: Add minimal continuous integration X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~105 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=36b9f45368a8c56266b77f47070e3e69dea8bee7;p=gnome-shell.git ci: Add minimal continuous integration Building gnome-shell is tricky due to the tight coupling with mutter, but until we figure out the best way forward, we can at least perform some basic syntax checking on the javascript bits. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/367 --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..07c9144af --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +stages: + - source_check + +variables: + JS_LOG: "js-report.txt" + +js_check: + image: registry.fedoraproject.org/fedora:latest + stage: source_check + before_script: + - dnf install -y findutils mozjs60-devel + script: + - find js -name '*.js' -exec js60 -c -s '{}' ';' 2>&1 | tee $JS_LOG + - (! grep -q . $JS_LOG) + artifacts: + paths: + - ${JS_LOG} + when: on_failure